{% extends 'index.html' %}
{% block subtitle %}- 订单管理{% endblock %}
<!--head-->
{% block head %}
    <style type="text/css">
        td {
            margin-left: 40px;
        }

        span {
            margin-left: 20px;
        }
    </style>
{% endblock %}

{% block content %}
    <div id="main">
        {% for one_oder_data in order_list %}
            <div class="div_goods_types_list">
                <table class="order_table">
                    <caption align="top">
                        <p>订单ID： {{ one_oder_data['OrderID'] }} </p>
                        <p>订单创建时间：{{ one_oder_data['CreateTime'] }} </p>
                        <p>订单总花费：{{ one_oder_data['TotalPayment'] }} </p>
                    </caption>
                    <tr>
                        <td>货品名称</td>
                        <td>单价</td>
                        <td>数量</td>
                        <td>金额</td>
                    </tr>
                    {% for one_buycar_data in one_oder_data['orderItems'] %}
                        <tr>
                            <td>{{ one_buycar_data['GoodsName'] }}</td>
                            <td>{{ one_buycar_data['GoodsPrice'] }}</td>
                            <td>{{ one_buycar_data['BuyNumber'] }}</td>
                            <td>{{ one_buycar_data['ItemPayment'] }}</td>
                        </tr>
                    {% endfor %}
                </table>
            </div>
        {% endfor %}
    </div>
{% endblock %}